package com.stageadminserver.adminserver.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.stagecommon.common.pojo.WorkComment;
import com.stagecommon.common.vo.WorkCommentVo;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yxl
 * @since 2021-11-07
 */
public interface WorkCommentMapper extends BaseMapper<WorkComment> {

    /**
     * 分页获取作品评论
     * @param page
     * @param content
     * @return
     */
    IPage<WorkCommentVo> selectAllWorkCommentsByPage(Page<WorkCommentVo> page, String content);

    /**
     * 添加作品评论
     * @param userId
     * @param content
     * @param workId
     * @return
     */
    Integer insertWorkComment(Integer userId,String content,Long workId);
}
